<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<script type="text/javascript">
function showDialog(){
	var config='dialogWidth:320;dialogHeight:180px;dialogTop:140px;dialogLeft:250px;';
	config+='center:yes;help:no;resizable:no;status:no';
	showModalDialog("date.html",selectBtn,config);
}
</script>
<input type="text" id="input1" value="" readonly>
<input type="button" id="selectBtn" onclick="showDialog()" value="选择日期">

<!-- 窗口对话框页面的编写 -->
<script type="text/javascript">
	function ok(){
		var theInput = dialogArguments;
		theInput.value= theYear+"-"+theMonth+"-"+theDate;
		window.close();
	}
</script>
<input type = "button" name="okbtn" value="确定" onclick="ok()">

</body>
</html>